stream: improve readable push performance#13113
Closed
mscdex wants to merge 1 commit intonodejs:masterfrom
Closed
Conversation
Member
|
When CITGM is restored, a CITGM run would be highly welcomed. |
22eade4 to
89aa63b
Compare
Contributor
Author
jasnell
approved these changes
May 22, 2017
Contributor
Author
|
There does not seem to be any CITGM failures caused by this particular PR. |
Member
|
@mscdex great news, LGTM! |
89aa63b to
b94a7e0
Compare
Member
|
Landed in 359ea2a |
addaleax
pushed a commit
that referenced
this pull request
May 23, 2017
PR-URL: #13113 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
jasnell
pushed a commit
that referenced
this pull request
May 24, 2017
PR-URL: #13113 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
jasnell
pushed a commit
that referenced
this pull request
May 28, 2017
PR-URL: #13113 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
3 tasks
Contributor
|
Should this be backported? Letting it bake for a little bit if so |
Member
|
I'm 👍 on waiting, but it can be backported. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is mostly about improving performance when pushing strings, but pushing Buffers seems to be just a tad faster too. Specifically this PR makes two types of changes: avoid unnecessary chunk validation and reducing duplicated conditionals.
Here are results from one of the benchmark files I modified to be able to test strings:
CI: https://ci.nodejs.org/job/node-test-pull-request/8170/
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)